Integrand size = 21, antiderivative size = 66 \[ \int \left (a+b \sec ^2(e+f x)\right ) \sin ^5(e+f x) \, dx=-\frac {(a-2 b) \cos (e+f x)}{f}+\frac {(2 a-b) \cos ^3(e+f x)}{3 f}-\frac {a \cos ^5(e+f x)}{5 f}+\frac {b \sec (e+f x)}{f} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {4218, 459} \[ \int \left (a+b \sec ^2(e+f x)\right ) \sin ^5(e+f x) \, dx=\frac {(2 a-b) \cos ^3(e+f x)}{3 f}-\frac {(a-2 b) \cos (e+f x)}{f}-\frac {a \cos ^5(e+f x)}{5 f}+\frac {b \sec (e+f x)}{f} \]
[In]
[Out]
Rule 459
Rule 4218
Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {\left (1-x^2\right )^2 \left (b+a x^2\right )}{x^2} \, dx,x,\cos (e+f x)\right )}{f} \\ & = -\frac {\text {Subst}\left (\int \left (a \left (1-\frac {2 b}{a}\right )+\frac {b}{x^2}-(2 a-b) x^2+a x^4\right ) \, dx,x,\cos (e+f x)\right )}{f} \\ & = -\frac {(a-2 b) \cos (e+f x)}{f}+\frac {(2 a-b) \cos ^3(e+f x)}{3 f}-\frac {a \cos ^5(e+f x)}{5 f}+\frac {b \sec (e+f x)}{f} \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.33 \[ \int \left (a+b \sec ^2(e+f x)\right ) \sin ^5(e+f x) \, dx=-\frac {5 a \cos (e+f x)}{8 f}+\frac {7 b \cos (e+f x)}{4 f}+\frac {5 a \cos (3 (e+f x))}{48 f}-\frac {b \cos (3 (e+f x))}{12 f}-\frac {a \cos (5 (e+f x))}{80 f}+\frac {b \sec (e+f x)}{f} \]
[In]
[Out]
Time = 0.26 (sec) , antiderivative size = 81, normalized size of antiderivative = 1.23
method | result | size |
parallelrisch | \(\frac {\left (-125 a +400 b \right ) \cos \left (2 f x +2 e \right )+\left (22 a -20 b \right ) \cos \left (4 f x +4 e \right )-3 \cos \left (6 f x +6 e \right ) a +\left (-256 a +1280 b \right ) \cos \left (f x +e \right )-150 a +900 b}{480 f \cos \left (f x +e \right )}\) | \(81\) |
derivativedivides | \(\frac {-\frac {a \left (\frac {8}{3}+\sin \left (f x +e \right )^{4}+\frac {4 \sin \left (f x +e \right )^{2}}{3}\right ) \cos \left (f x +e \right )}{5}+b \left (\frac {\sin \left (f x +e \right )^{6}}{\cos \left (f x +e \right )}+\left (\frac {8}{3}+\sin \left (f x +e \right )^{4}+\frac {4 \sin \left (f x +e \right )^{2}}{3}\right ) \cos \left (f x +e \right )\right )}{f}\) | \(82\) |
default | \(\frac {-\frac {a \left (\frac {8}{3}+\sin \left (f x +e \right )^{4}+\frac {4 \sin \left (f x +e \right )^{2}}{3}\right ) \cos \left (f x +e \right )}{5}+b \left (\frac {\sin \left (f x +e \right )^{6}}{\cos \left (f x +e \right )}+\left (\frac {8}{3}+\sin \left (f x +e \right )^{4}+\frac {4 \sin \left (f x +e \right )^{2}}{3}\right ) \cos \left (f x +e \right )\right )}{f}\) | \(82\) |
parts | \(-\frac {a \left (\frac {8}{3}+\sin \left (f x +e \right )^{4}+\frac {4 \sin \left (f x +e \right )^{2}}{3}\right ) \cos \left (f x +e \right )}{5 f}+\frac {b \left (\frac {\sin \left (f x +e \right )^{6}}{\cos \left (f x +e \right )}+\left (\frac {8}{3}+\sin \left (f x +e \right )^{4}+\frac {4 \sin \left (f x +e \right )^{2}}{3}\right ) \cos \left (f x +e \right )\right )}{f}\) | \(84\) |
norman | \(\frac {\frac {16 a -80 b}{15 f}-\frac {32 \left (a +b \right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{6}}{3 f}+\frac {4 \left (16 a -80 b \right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}}{15 f}+\frac {\left (16 a -80 b \right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{4}}{3 f}}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}-1\right ) \left (1+\tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}\right )^{5}}\) | \(110\) |
risch | \(-\frac {5 \,{\mathrm e}^{i \left (f x +e \right )} a}{16 f}+\frac {7 \,{\mathrm e}^{i \left (f x +e \right )} b}{8 f}-\frac {5 \,{\mathrm e}^{-i \left (f x +e \right )} a}{16 f}+\frac {7 \,{\mathrm e}^{-i \left (f x +e \right )} b}{8 f}+\frac {2 b \,{\mathrm e}^{i \left (f x +e \right )}}{f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}-\frac {\cos \left (5 f x +5 e \right ) a}{80 f}+\frac {5 \cos \left (3 f x +3 e \right ) a}{48 f}-\frac {\cos \left (3 f x +3 e \right ) b}{12 f}\) | \(135\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 60, normalized size of antiderivative = 0.91 \[ \int \left (a+b \sec ^2(e+f x)\right ) \sin ^5(e+f x) \, dx=-\frac {3 \, a \cos \left (f x + e\right )^{6} - 5 \, {\left (2 \, a - b\right )} \cos \left (f x + e\right )^{4} + 15 \, {\left (a - 2 \, b\right )} \cos \left (f x + e\right )^{2} - 15 \, b}{15 \, f \cos \left (f x + e\right )} \]
[In]
[Out]
\[ \int \left (a+b \sec ^2(e+f x)\right ) \sin ^5(e+f x) \, dx=\int \left (a + b \sec ^{2}{\left (e + f x \right )}\right ) \sin ^{5}{\left (e + f x \right )}\, dx \]
[In]
[Out]
none
Time = 0.19 (sec) , antiderivative size = 58, normalized size of antiderivative = 0.88 \[ \int \left (a+b \sec ^2(e+f x)\right ) \sin ^5(e+f x) \, dx=-\frac {3 \, a \cos \left (f x + e\right )^{5} - 5 \, {\left (2 \, a - b\right )} \cos \left (f x + e\right )^{3} + 15 \, {\left (a - 2 \, b\right )} \cos \left (f x + e\right ) - \frac {15 \, b}{\cos \left (f x + e\right )}}{15 \, f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 197 vs. \(2 (62) = 124\).
Time = 0.32 (sec) , antiderivative size = 197, normalized size of antiderivative = 2.98 \[ \int \left (a+b \sec ^2(e+f x)\right ) \sin ^5(e+f x) \, dx=\frac {2 \, {\left (\frac {15 \, b}{\frac {\cos \left (f x + e\right ) - 1}{\cos \left (f x + e\right ) + 1} + 1} + \frac {8 \, a - 25 \, b - \frac {40 \, a {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} + \frac {110 \, b {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} + \frac {80 \, a {\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {160 \, b {\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {90 \, b {\left (\cos \left (f x + e\right ) - 1\right )}^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} - \frac {15 \, b {\left (\cos \left (f x + e\right ) - 1\right )}^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}}}{{\left (\frac {\cos \left (f x + e\right ) - 1}{\cos \left (f x + e\right ) + 1} - 1\right )}^{5}}\right )}}{15 \, f} \]
[In]
[Out]
Time = 17.33 (sec) , antiderivative size = 55, normalized size of antiderivative = 0.83 \[ \int \left (a+b \sec ^2(e+f x)\right ) \sin ^5(e+f x) \, dx=\frac {{\cos \left (e+f\,x\right )}^3\,\left (\frac {2\,a}{3}-\frac {b}{3}\right )-\cos \left (e+f\,x\right )\,\left (a-2\,b\right )-\frac {a\,{\cos \left (e+f\,x\right )}^5}{5}+\frac {b}{\cos \left (e+f\,x\right )}}{f} \]
[In]
[Out]